﻿$(document).ready(function() {
    $("#suggest1").autocomplete(EALists, {
        minChars: 0,
        width: 200,
        minChars:1,
        max: 3,
        formatItem: function(row, i, max) {
            return row._C + "  " + row._S + "  " + row._N;
        },
        formatMatch: function(row, i, max) {
               return row._R;
        },
        formatResult: function(row) {
            return row._C;
        }
    });


    $("#search1").autocomplete(EALists, {
        minChars: 0,
        width: 180,
        minChars: 1,
        max: 3,
        formatItem: function (row, i, max) {
            return row._C + "  " + row._S + "  " + row._N;
        },
        formatMatch: function (row, i, max) {
            return row._R;
        },
        formatResult: function (row) {
            return row._C;
        }
    });

   


    //goodscode
    $("#goodscode").autocomplete(EALists, {
        minChars: 0,
        width: 200,
        minChars: 1,
        max: 3,
        formatItem: function (row, i, max) {
            return row._C + "  " + row._S + "  " + row._N;
        },
        formatMatch: function (row, i, max) {
            return row._R;
        },
        formatResult: function (row) {
            return row._C;
        }
    });

    function findValueCallback(event, data, formatted) {
        if (data) {      
        }
    }
}); 